package com.sc.nft.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.dto.AuctionConsumeAdminPageDTO;
import com.sc.nft.entity.dto.AuctionRecordAdminDTO;
import com.sc.nft.dto.UserAuctionBiddingDTO;
import com.sc.nft.entity.UserInfo;
import com.sc.nft.entity.dto.AuctionUserBiddingAdminPageDTO;
import com.sc.nft.entity.vo.*;

import java.util.List;

/**
 * <p>
 * 拍卖配置表 服务类
 * </p>
 *
 * @author liGen
 * @since 2024-09-05
 */
public interface DigitalCollectionProductInfoAuctionService {

    /**
     * 用户拍卖记录
     * @param userId
     * @param mp
     * @return
     */
    IPage<UserAuctionRecordPageVO> auctionRecords(Long userId, Page mp);

    /**
     * 单个拍卖详情
     * @param userId
     * @param productId
     * @return
     */
    UserAuctionRecordDetailsVO auctionDetails(Long userId,Long productId);

    /**
     * 我的质押物
     * @param userId
     * @param productId
     * @return
     */
    UserAuctionPledgeVO auctionPledgeItems(Long userId,Long productId);

    /**
     * 中标结果公示
     * @param productId
     * @param mp
     * @return
     */
    IPage<UserAuctionWinVO> auctionWinList(Long productId, Page mp);

    /**
     * 去参加拍卖活动
     * @param productId
     * @param userId
     * @return
     */
    UserAuctionParticipationVO auctionParticipation(Long productId,Long userId);


    /**
     * 后台拍卖列表
     * @param auctionRecordAdminDTO
     * @return
     */
    Page<AuctionRecordAdminPageVO> getAuctionRecordAdminPage(AuctionRecordAdminDTO auctionRecordAdminDTO);


    /**
     * 用户投标
     * @param userAuctionBiddingDTO
     * @param user
     */
    void auctionBidding(UserAuctionBiddingDTO userAuctionBiddingDTO, UserInfo user);


    /**
     * 拍卖数据汇总
     * @param productId
     * @return
     */
    AuctionDataDetailsVO auctionDataDetails(Long productId);

    /**
     * 投标用户列表
     * @param auctionUserBiddingAdminPageDTO
     * @return
     */
    Page<AuctionUserBiddingAdminPageVO> getAuctionUserBiddingAdminPage(AuctionUserBiddingAdminPageDTO auctionUserBiddingAdminPageDTO);


    /**
     * 获取用户协议
     * @return
     */
    String auctionGetRule();

    /**
     * 用户同意协议
     * @param productId
     * @param userId
     * @return
     */
    void auctionUserAgreement(Long productId, Long userId);
}
